<template>

  <div class="service">

    <div class="serv">
      <p class="serv_tit" v-html="info.title"></p>
      <div class="serv_cont" v-html="info.content"></div>
    </div>

    <!-- 更新经纬度 -->
    <lat-lng></lat-lng>
  </div>

</template>


<script>
import axios from 'axios'
import global from '../../../utils/global'
import store from '../../../utils/store'
export default {
  name: 'service',
  data () {
    return {
      info: '',
    }
  },
  mounted(){
    this.getInfo();
    this.$root.washShare();
  },
  methods: {
    // 信息获取
    getInfo(){
      var that = this;
      axios.get(global.api.index.serviceStandard,{
        params: {
          uuid: localStorage.getItem('carWashUuid'),
        }
      })
      .then(function(res){
        console.log("getInfo then");
        console.log(res);
        that.info = res.data.data;
      })
      .catch(function(res){
        console.log("getInfo catch");
        console.log(res);
      }) 
    },
  }
}
</script>

<style scoped>
  .serv{
    padding: 1rem 0.5rem;
  }
  .serv_tit{
    /*font-size: 1rem;*/
    line-height: 2rem;
    text-align: center;
  }
  .serv_cont{
    text-align: left;
  }
</style>
<style>
  ul,li,div,a,p,span{
    margin: 0;
    padding: 0;
  }
  li{
    list-style: none;
  }
  .flex{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
</style>
